/*
	function showChart(c)  排行榜切换
	function cart()        end动画效果
*/

function ceshi(){
	for(var i=0;i<30;i++){
		window.setTimeout(cart,Math.random()*10000);
	}
}
function showChart(c){//排行榜切换
	var Et=document.getElementById("Et");
	var Mt=document.getElementById("Mt");
	var Ht=document.getElementById("Ht");
	if(c=="Et"){
		Et.style.display="inline-block";
		Mt.style.display="none";
		Ht.style.display="none";
	}
	else if(c=="Mt"){
		Mt.style.display="inline-block";
		Et.style.display="none";
		Ht.style.display="none";
	}
	else{
		Ht.style.display="inline-block";
		Et.style.display="none";
		Mt.style.display="none";
	}
}
function cart(){ //end动画效果
	var cx=document.createElement("p");
	var colors=["red","yellow","skyblue","purple","lime","orange","pink"];
	var things=["&dagger;","&hearts;","&diams;","&clubs;","	&spades;","&#9728;","&#9834;","9836;","&#10054;"];
	cx.setAttribute("class","c");
	cx.style.color=colors[parseInt(Math.random()*7)];
	cx.style.marginLeft=Math.random()*200+50+"px";
	cx.innerHTML=things[parseInt(Math.random()*7)];
	cx.style.position="relative";
	document.getElementById("cartSurface").append(cx);
}